package com.jrx.anytxn.transaction.bean;

import com.jrx.anytxn.transaction.entity.*;
import org.apache.commons.collections.CollectionUtils;

import java.util.ArrayList;
import java.util.List;

/**
 * 抛账 更新实体
 *
 * @author cbd
 */
public class CastWaiveAccountBean {

    private List<AmInterestAccrualInfo> interestAccrualInfoList = new ArrayList<>();

    private List<AmWaiveRepaymentPlanInfo> updateWaiveRepaymentPlanList = new ArrayList<>();

    public  List<AmInterestAccrualInfo> getInterestAccrualInfoList() {
        return interestAccrualInfoList;
    }

    public void setInterestAccrualInfoList(List<AmInterestAccrualInfo> interestAccrualInfoList) {
        this.interestAccrualInfoList = interestAccrualInfoList;
    }

    public void addInterestAccrualInfo(AmInterestAccrualInfo amInterestAccrualInfo) {
        if(null != amInterestAccrualInfo) {
            this.interestAccrualInfoList.add(amInterestAccrualInfo);
        }
    }


    public void addUpdateWaiveRepaymentPlan(AmWaiveRepaymentPlanInfo waiveRepaymentPlanInfo) {
        this.updateWaiveRepaymentPlanList.add(waiveRepaymentPlanInfo);
    }


    public List<AmWaiveRepaymentPlanInfo> getUpdateWaiveRepaymentPlanList() {
        return updateWaiveRepaymentPlanList;
    }

    public void setUpdateWaiveRepaymentPlanList(List<AmWaiveRepaymentPlanInfo> updateWaiveRepaymentPlanList) {
        this.updateWaiveRepaymentPlanList = updateWaiveRepaymentPlanList;
    }
}
